﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using KBManagement.Library;
namespace KBManagement
{
    public partial class InputBox : Form
    {
        public InputBox()
        {
            InitializeComponent();
        }

        public IObserver observer { get; set; }
        private void btnOK_Click(object sender, EventArgs e)
        {
            try
            {
                observer.UpdateQuantity(Convert.ToInt32(txtQuantity.Text));
            }
            catch (Exception)
            {
                
                
            }
          
            this.Dispose();
        }
    }
}
